<include file="User@Public:header"/>
<div class="am-g">
	<div class="am-u-md-2">
		<include file="User@Public:left_menu"/>
	</div>
	<div class="am-u-md-10 am-cf">
		<div class="am-panel am-panel-default am-cf">
			<div class="am-panel-hd">
				<h3 class="am-panel-title">{$title|htmlspecialchars}</h3>
			</div>
			<div class="am-panel-bd">
				<if condition="$suggest"><div class="am-alert am-alert-danger">（{$suggest|htmlspecialchars}）</div></if>

				<form action="{$savePostUrl}" method="post" class="am-form am-form-horizontal form-horizontal">
					<if condition="!empty($group)">
						<ul class="am-nav am-nav-tabs group_nav">
							<volist name="group" id="vGroup">
							<li class="<if condition="$i eq 1">am-active</if>"><a href="javascript:">{$key}</a></li>
							</volist>
						</ul>
					</if>
					<php>if($group){</php>
					<volist name="group" id="vGroup">
						<div class="am-cf group_list am-margin-top" style="<if condition='$i neq 1'>display: none;</if>">
							<volist name="vGroup" id="field">
							<include file="Common@Default/Builder/_key"/>
							</volist>
						</div>
					</volist>
					<php>}else{</php>
						<volist name="keyList" id="field">
							<include file="Common@Default/Builder/_key"/>
						</volist>
					<php>}</php>
					<volist name="keyList" id="field">
						<if condition="$field['type'] eq 'hidden'">
						<include file="Common@Default/Builder/_key"/>
						</if>
					</volist>

					<div class="am-cf am-form-group">
						<div class="am-u-sm-10 am-u-sm-offset-2">
							<volist name="buttonList" id="button">
							<button {$button.attr}>{$button.title}</button>  &nbsp;
							</volist>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>
<include file="User@Public:footer"/>